//创建一个Employee类，属性有(名字，性别，年龄，职位，薪水)，提供三个构造方法、
//可以初始化（1）(名字，性别，年龄，职位，薪水)，(2)(名字，性别，年龄)，（3）(职位，薪水)，要求充分复用构造器。
public class Homework20 {
    public static void main(String[] args) {
        Employee employee = new Employee("马可", '男', 22);
        Employee employee1 = new Employee("马可", '男', 22, "程序员", 5000);
        Employee employee2 = new Employee("程序员", 5000);

    }
}

class Employee {
    String name;
    char sex;
    int age;
    String job;
    double salary;
    public Employee(String job,double salary) {
        this.job = job;
        this.salary = salary;
    }
    public Employee(String name, char sex, int age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }
    public Employee(String name, char sex, int age, String job, double salary) {
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.job = job;
        this.salary = salary;
    }
}
